set basename the same way we do for ansible-private
Merge pull request #1391 from edx/jarv/fix-basename-for-edx-secure

set basename the same way we do for ansible-private