fix bug on using file packager on subdirs; fixes #2123