Try fixing space in path (again)

Use backticks for command substitution, and quote dirname's arguments