Improve pj-plugin to support projects with spaces in their names + optimise code

...depending on date format + add support for projects with spaces in them