Agreed to @Ian Finlay.. My main file had special chars such as '()'. So it couldn't see the path probably because of it. I changed the folder name to normal chars and corrected the paths in Environment Variables. Then it worked!
Basically try not to use special characters in folder names :)