fixed problems with running phantomas from different directory