Fixed a major issue when using relative folder paths.