Fix assetsDir behavior.