replace $path variable to remove conflict with WP variable