Check for path within main script