fixed a bug with whitespaces in paths