updated spec file to use Path than dup code