rf: handle spaces in directory path