set the dest resource path to relative path with application root directory and fixed the test
delete useless logic and add _getFilesWithAbsolutePath function