Fix some paths/normpath usage. Use pjoin to join paths.