Added better path functionality for plot saving'