fix file creation in subfolder