Handle nil is given as filepath
Fix default rake tasks and gems