Bugfix: Uncaught exception occurs when there are directories under stylesheetsPath