A little linting
If assetsDirectory does not exist, default to a files current path