allow using a whole directory as an argument
fix makefile thinkos