trim trailing whitespace
use 'app.resources_dirs' instead of copying the assets