Only bust require.js cache on localhost.
Cleanup file modal file handling.