Fix for compiling folders

Closes #3