rakefile: fix issue with <application>/public/api folder