fix bugs of compiling the files in subdirectories
v0.2.2