Fixes and changes so it works at root folder.