Updated to account for cwd when requiring in scripts