Fix to find resources files from command line
(cherry picked from commit eee9fd2)