Use projectDir if gradle is being run in a different directory

Signed-off-by: Ian Macalinao <ian@giza.us>