chdir only if it exists
build assets only once if installing from a list from path