fix #1322

change how STATIC_PATHS get processed to work with the new get_files function