Bugfix: Error on compilation in dir with spaces.

Closes Issue #115.
Merge pull request #120 from AlexJF/fix_fname_with_space

Bugfix: Error on compilation in dir with spaces. Fixes #115