utils: fixed a nasty bug in custom/copy-project-subpath