Bug fix: relative path in -d option and creates non existent directory