main.js: No more synchronous checking type
routes.js: Prepare ugly before sending it for faster load-time.
file.path was being normalized to "./" when empty