Use File::Spec to build dir paths.

Signed-off-by: Shawn Laffan <shawnlaffan@gmail.com>