Fixes #1: Now creates parent folders for target file (i.e. `mkdir -p targetFile`)