FIX dirname instead of pwd :(