Optimized the compile task to run on current directory per default.
Make most tasks to allow optional directory parameter, use current as default.