Allow basePath to be passed in as src