Go back to previous dir to no fail on relative paths

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>