rakefile: fix removing old directories and running on platforms other than iPhone