Adding ability to pass in absolute or relative directory