Check for '.rstudio-protocol' file before attempting to check namespace