Set resource path based on spec directory when running atom core specs

Fixes #3872