Added the option to allow the user to supply a custom static directory